﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace IronWinter
{
    public class Cursor
    {
        Point position = new Point(300, 300);
        AnimatedSprite sprite;

        public Cursor(Texture2D texture)
        {
            sprite = new AnimatedSprite(texture, 0, 0, 12, 17, 1);
            //sprite.IsAnimating = false;
        }

        public int X
        {
            get { return position.X; }
            set { position.X = value; }
        }

        public int Y
        {
            get { return position.Y; }
            set { position.Y = value; }
        }

        public Vector2 Position
        {
            get { return new Vector2(position.X, position.Y); }
            set 
            { 
                position.X = (int)value.X;
                position.Y = (int)value.Y;
            }
        }

        public void Draw(SpriteBatch sb)
        {
            sprite.Draw(sb, position.X, position.Y);
        }
    }
}
